package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysProjectExpertExtractMapper;
import com.ruoyi.system.domain.SysProjectExpertExtract;
import com.ruoyi.system.service.ISysProjectExpertExtractService;

/**
 * 专家抽取记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-07
 */
@Service
public class SysProjectExpertExtractServiceImpl implements ISysProjectExpertExtractService 
{
    @Autowired
    private SysProjectExpertExtractMapper sysProjectExpertExtractMapper;

    /**
     * 查询专家抽取记录
     * 
     * @param id 专家抽取记录主键
     * @return 专家抽取记录
     */
    @Override
    public SysProjectExpertExtract selectSysProjectExpertExtractById(Long id)
    {
        return sysProjectExpertExtractMapper.selectSysProjectExpertExtractById(id);
    }

    /**
     * 查询专家抽取记录列表
     * 
     * @param sysProjectExpertExtract 专家抽取记录
     * @return 专家抽取记录
     */
    @Override
    public List<SysProjectExpertExtract> selectSysProjectExpertExtractList(SysProjectExpertExtract sysProjectExpertExtract)
    {
        return sysProjectExpertExtractMapper.selectSysProjectExpertExtractList(sysProjectExpertExtract);
    }

    /**
     * 新增专家抽取记录
     * 
     * @param sysProjectExpertExtract 专家抽取记录
     * @return 结果
     */
    @Override
    public int insertSysProjectExpertExtract(SysProjectExpertExtract sysProjectExpertExtract)
    {
        sysProjectExpertExtract.setCreateTime(DateUtils.getNowDate());
        return sysProjectExpertExtractMapper.insertSysProjectExpertExtract(sysProjectExpertExtract);
    }

    /**
     * 修改专家抽取记录
     * 
     * @param sysProjectExpertExtract 专家抽取记录
     * @return 结果
     */
    @Override
    public int updateSysProjectExpertExtract(SysProjectExpertExtract sysProjectExpertExtract)
    {
        sysProjectExpertExtract.setUpdateTime(DateUtils.getNowDate());
        return sysProjectExpertExtractMapper.updateSysProjectExpertExtract(sysProjectExpertExtract);
    }

    /**
     * 批量删除专家抽取记录
     * 
     * @param ids 需要删除的专家抽取记录主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectExpertExtractByIds(Long[] ids)
    {
        return sysProjectExpertExtractMapper.deleteSysProjectExpertExtractByIds(ids);
    }

    /**
     * 删除专家抽取记录信息
     * 
     * @param id 专家抽取记录主键
     * @return 结果
     */
    @Override
    public int deleteSysProjectExpertExtractById(Long id)
    {
        return sysProjectExpertExtractMapper.deleteSysProjectExpertExtractById(id);
    }
}
